<div>
  <button class="btn btn-primary" (click)="toggleOpen()">Toggle</button>
</div>
<div [@openClose]="isOpen ? 'open' : 'closed'" class="open-close-container">
  <h1>animation: {{ isOpen ? 'Open' : 'Closed' }}!</h1>
</div>
